// tslint:disable-next-line:ordered-imports
import query from '@dfeidao/atom-nodejs/db/query';
import { IncomingHttpHeaders } from 'http';
import { productid ,systemid} from '../../atom/config';
// 页面初始化查询
interface Message {
	filter: {
		staff_no: string
	};
}
export default async function atom(message: Message, action_id: string, session_id: string, headers: IncomingHttpHeaders) {
	const p = query(action_id, session_id, systemid);
		p.prepare('department_staff', ['cabinet_staff_no', 'contact_number','staff_name','staff_nation','sex','phone_number','education','marital_status','native_place','politics_face','family_address','headimg','post_name','is_resident','deptname','staff_state','post_no'], { productid,staff_no:message.filter.staff_no},1,1, [], []);
	const [dt] = await p.exec();
	return {dt};

}
